package com.codebo.homiematch.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codebo.homiematch.model.dto.PostCreateRequest;
import com.codebo.homiematch.model.dto.PostLikeStarRequest;
import com.codebo.homiematch.model.dto.PostListRequest;
import com.codebo.homiematch.model.entity.Post;
import com.codebo.homiematch.model.vo.PostVO;

/**
 * @author 25912
 * @description 针对表【post(帖子)】的数据库操作Service
 * @createDate 2025-07-20 16:36:03
 */
public interface PostService extends IService<Post>
{
    Page<PostVO> getPostList(PostListRequest postListRequest);

    void createPost(PostCreateRequest postCreateRequest);

    PostVO getPost(Long id);

    void thumb(PostLikeStarRequest postLikeStarRequest);

    void favour(PostLikeStarRequest postLikeStarRequest);

    boolean thumbStatus(PostLikeStarRequest postLikeStarRequest);

    boolean favorStatus(PostLikeStarRequest postLikeStarRequest);





    PostVO getPostVO(Post post);



}
